package com.trkj.dao.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.YzrStoreCountDet;

public interface IYzrStoreCountDetDAO extends CrudRepository<YzrStoreCountDet, String> {

	@Query("select max(yscd.storeCountDetId) from YzrStoreCountDet yscd where yscd.storeCountDetId like ?1%")
	public String findMaxId(String a);
	
	@Query("select yscd from YzrStoreCountDet yscd where yscd.countDetCountId=?1")
	public List<YzrStoreCountDet> findBycountId(String countId);
}
